package ar.edu.unlu.sistemas.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import ar.edu.unlu.sistemas.ws.business.PeerWS;
import ar.edu.unlu.sistemas.ws.business.ResultsWS;

@WebService(name = "MovirdroidWebService", targetNamespace = "http://ws.sistemas.unlu.edu.ar/")
public interface MovirdroidWebService {

	@WebMethod(operationName = "putIndex", action = "urn:PutIndex")
	public Integer putIndex(@WebParam(name = "arg0") PeerWS peer,
			@WebParam(name = "arg1") String description);

	@WebMethod(operationName = "updateIndex", action = "urn:UpdateIndex")
	public Integer updateIndex(@WebParam(name = "arg0") PeerWS peer,
			@WebParam(name = "arg1") String description);

	@WebMethod(operationName = "query", action = "urn:Query")
	public ResultsWS query(@WebParam(name = "arg0") PeerWS peer,
			@WebParam(name = "arg1") String query);

	@WebMethod(operationName = "sayHello", action = "urn:SayHello")
	public Integer sayHello(@WebParam(name = "arg0") PeerWS peer);

	@WebMethod(operationName = "sayGoodbye", action = "urn:SayGoodbye")
	public Integer sayGoodbye(@WebParam(name = "arg0") PeerWS peer);

}